<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <span>阿婆主:{{name}} </span>
        <input type="text" v-model="name">
        <!-- <span>更多:{{more.more2.like2}} </span> -->
        <span>更多:{{more.like}} </span>

        <input type="text" v-model="more.like">
    </div>
    <script src="./vue.js"></script>

    <script>
        // https://www.bilibili.com/video/BV1934y1a7MN?share_source=copy_web

        const vm = new Vue(
            {
                el: '#app',
                data: {
                    name: '蛋老师',
                    more: {
                        like: '一键三连',
                        // more2:{
                        //     like2:'喜欢你'
                        // }
                    }
                }
            }
        );
        console.log(vm);

    </script>
</body>

</html>